#ifndef _CTEXTURE_H
#define _CTEXTURE_H

#include "d3d9.h"
#include "d3dx9.h"

class CTexture
{
public:
	//--------------------------------------------//
	//	Constructor and Destructor for this class //
	//--------------------------------------------//
	CTexture();
	~CTexture();

	//--------------------------------//
	//	Public methods for this class //
	//--------------------------------//
	HRESULT					LoadTextureFromFile		( LPCTSTR FilePath , D3DCOLOR TransparentColor , LPDIRECT3DDEVICE9 pD3dDevice , LPD3DXSPRITE spriteHandler );

	void					Draw					( float Xpos , float Ypos , float deep , 
														const RECT *scrRect , D3DCOLOR color );
	void					Draw					( float x , float y , 
														D3DXVECTOR2 vecScaleCenter , float xScaleRatio , float yScaleRatio , 
														D3DXVECTOR2 vecRotatteCenter , float angle , 
														D3DCOLOR color , const RECT *scrRect , float deep );
	void					Draw					( int x , int y , 
														float xScaleRatio, float yScaleRatio , 
														char currFrame , char NumFrameInCol , float deep , int width , int height);


	void					Release					();

protected:
	//-----------------------------------//
	//	Private variables for this class //
	//-----------------------------------//
	LPDIRECT3DTEXTURE9		m_pTexture;
	LPD3DXSPRITE			m_pSpriteHandler;

};

#endif